{{include file='header.htm' title='收到的信息'}}
<style type="text/css">
@import url(css/messages.css);
</style>
<script type="text/javascript">
$(function () {
	$(".subject").click(function(){
		$(".msgcontent").hide();
		$(this).find("div").fadeIn("slow");
		var pmid = $(this).find("input").val();
		if(pmid !=0)
		{
			$.ajax({
	    type: "post",
	    url : "index.php?m=pm&a=update",
	    dataType:'text',
	    data: 'pmid='+pmid,
	    success: function(){
	                       return false;
	                          }
	           });	
		}			
	}); 
	$(".closemsg").click(function(){
		$(".msgcontent").hide();
		return false;
		});
});
	</script>
<DIV id=content>
<DIV id=heading>
<H1>收到的消息 </H1>
<DIV class=clear></DIV></DIV>
<DIV class=clear></DIV>
<DIV class="Tab SearchTab">
<UL class=Tabs>
  <LI class=TabIn id=tab1>收件箱 </LI>
  <LI class=TabOut id=tab2><A 
  href="index.php?m=pm&a=outbox">发件箱</A> </LI>
  <LI class=TabOut id=tab3><A 
  href="index.php?m=pm&a=pm">发送消息</A> </LI></UL></DIV>
<DIV>
<DIV id=container>
<DIV id=main>
<DIV class=InBox>
<FORM id=delete_form action=http://zw870307.yupoo.com/messages/operation 
method=get><INPUT type=hidden value=http://zw870307.yupoo.com/messages/inbox 
name=from> <INPUT type=hidden name=op> 
 
<TABLE cellSpacing=0 width="100%">
  <THEAD>
  <TR>
    <TH>&nbsp;</TH>
    <TH>发件人</TH>
    <TH>主题</TH>
    <TH>发送日期</TH>
    <TH class=InBoxDel>&nbsp;</TH></TR></THEAD>
  <TBODY>
  	{{section name=ilist loop=$indata}}
  	{{if $indata[ilist].new ==1}}
  <TR>
    <TD class=unreadicon>&nbsp;</TD>
    <TD class=unread><a href="index.php?m=profile&a=view&userid={{$indata[ilist].msgfromid}}">{{$indata[ilist].msgfrom}}</a></TD>
    <TD  class=subject  class=unread> <A href="#">{{$indata[ilist].subject}}</A>
    	<div class=msgcontent style="display:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{$indata[ilist].message}}<a href=index.php?m=pm&a=pm&username={{$indata[ilist].msgfrom|escape:"url"}}>(回复)</a><a class=closemsg href="#" style="color:#FF0000">X</a></div>
    	<input type=hidden name=pmid value={{$indata[ilist].pmid}}>
    	</TD>

    <TD class=unread>{{$indata[ilist].created|date_format:"%Y-%m-%e %H:%M:%S"}}</TD>
    <TD class=InBoxDel><a onclick="return window.confirm('删除此短信?');" href="index.php?m=pm&a=delete&pmid={{$indata[ilist].pmid}}&type=inbox">删除</a></TD>
   </TR>
   {{else}}
  <TR>
    <TD class=readicon>&nbsp;</TD>
    <TD class=read><a href="index.php?m=profile&a=view&userid={{$indata[ilist].msgfromid}}">{{$indata[ilist].msgfrom}}</a></TD>
    <TD class=subject class=read><A   href="#">{{$indata[ilist].subject}}</A>
    	<div class=msgcontent style="display:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{$indata[ilist].message}}<a href=index.php?m=pm&a=pm&username={{$indata[ilist].msgfrom|escape:"url"}}>(回复)</a><a class=closemsg href="#" style="color:#FF0000">X</a></div>
    	<input type=hidden name=pmid value=0>
    	</TD>
    <TD class=read>{{$indata[ilist].created|date_format:"%Y-%m-%e %H:%M:%S"}}</TD>
    <TD class=InBoxDel><a onclick="return window.confirm('删除此短信?');" href="index.php?m=pm&a=delete&pmid={{$indata[ilist].pmid}}&type=inbox">删除</a></TD>
   </TR>
   {{/if}}
  {{/section}}
 </TBODY>
</TABLE>
<div class=page>{{$inmulti}}</div>
</FORM></DIV></DIV>
</DIV>
<DIV class=clear></DIV></DIV></DIV>
    {{include file='footer.htm'}}